<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets">
	
	<ui:decorate template="/layout/template.xhtml">
		<ui:define name="centro"> 
		
		<h:form id="form"> 			
			<p:panel header="Mudanca de senha">  
			
				<h:panelGrid columns="2"> 
					 <h:outputLabel for="password1" value="Senha atual: *" />  
                	 <p:password   id="password1" value="#{loginBean.password1}" label="Password 1" required="true" />  

               		 <h:outputLabel for="password2" value="Nova Senha: *" />  
                	 <p:password  id="password2" value="#{loginBean.password2}" label="Password 2" required="true" />  

                <f:facet name="footer">  
                    <p:commandButton type="Submit" value="Enviar" action="#{loginBean.alterarSenha}" icon="ui-icon-check" style="margin:0"/>  
                </f:facet>  
                
                
        		</h:panelGrid> 
    		</p:panel>  
		 </h:form> 		 
        </ui:define>
    </ui:decorate>
</html>